package jicheng1;

public class Dog extends Pet{
    private String strain;
    public Dog(String name, int helth, int love, String sex,String strain) {
        super(name, helth, love, sex);
        this.strain=strain;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }

    public void print(){
        System.out.println("这是一只宠物狗，类别是"+strain);
        super.print();

    }
}
